public class Arrays {
	public static void main(String[] args) {
		int countOf3 = 0;
		int countOf7 = 0;
		int countOf9 = 0;
		int[] array = { 3, 7, 7, 7, 7, 3, 7, 7, 3, 3 };		
		for (int i = 0; i < array.length; i++) {
			switch (array[i]) {
				case 3: countOf3++; break;
				case 7: countOf7++; break;
				case 9: countOf9++; break;
			}			
		}
		
		System.out.println(String.format("Number of 3: %s", countOf3));
		System.out.println(String.format("Number of 7: %s", countOf7));
		System.out.println(String.format("Number of 9: %s", countOf9));
	}
}